package com.ruoyi.livedemo.dto;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthRegisterRequest {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 20, message = "用户名长度需在4-20个字符之间")
    private String username;

    @NotBlank(message = "请填写展示昵称")
    private String displayName;

    @NotBlank(message = "请设置登录密码")
    @Size(min = 6, max = 60, message = "密码长度需在6-60个字符之间")
    private String password;

    @Email(message = "邮箱格式不正确")
    private String email;
}
